﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="createjob.aspx.cs" Inherits="Hired.createjob"
    MasterPageFile="Hired1Div.master" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="ContentHead" runat="server" ContentPlaceHolderID="HeadPlaceHolder">
    <style type="text/css">
        .line_jobspecifications
        {
            float: left;
            margin-top: 10px;
            width: 990px;
            height: 20px;
            background: url(images/lineJobSpec.png);
        }
        .ca1
        {
            width: 150px;
        }
        
        .ca2
        {
            width: 350px;
        }
        
        .ca3
        {
            width: 185px;
        }
        
        .ca4
        {
            width: 305px;
        }
        
        .ca_submit
        {
            float: right;
            width: 400px;
            margin-top: 20px;
            margin-right: 15px;
        }
        .style1
        {
            width: 50%;
            float: left;
        }
        </style>

        <!-- jquery enter code -->
        <script type="text/javascript">
            $(document).ready(function () {
                $('[id$=txtTitle]').keydown(function () {
                    enterNoSubmit('[id$=txtDescription]');
                });
                $('[id$=txtDescription]').keydown(function () {
                    enterNoSubmit('[id$=txtType]');
                });
                $('[id$=txtType]').keydown(function () {
                    enterNoSubmit('[id$=txtRequirements]');
                });
                $('[id$=txtRequirements]').keydown(function () {
                    enterNoSubmit('[id$=txtLocation]');
                });
                $('[id$=txtLocation]').keydown(function () {
                    enterNoSubmit('[id$=ddlJobIndustry]');
                });
                $('[id$=ddlJobIndustry]').keydown(function () {
                    enterNoSubmit('[id$=txtPosition]');
                });
                $('[id$=txtPosition]').keydown(function () {
                    enterSubmit('[id$=btnSave]');
                });
            });
        </script>
</asp:Content>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="MainPlaceHolder">
    <div class="line_jobspecifications"> 
    </div> 
    <p>
      <asp:Label ID ="lblSuccessful" runat="server" Text="Job successfully added." 
        Font-Bold="True" ForeColor="#3399FF" Visible="False"></asp:Label></p>
        <div class="line-clear"><br /></div>
    <table class="style1">
            <tr>
                <td style="text-align: right">
        <span class="req_field">*</span>Title:</td>
                <td>
        <asp:TextBox ID="txtTitle" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtTitle" ErrorMessage="Required Field" Font-Size="X-Small" 
                        ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style="text-align: right">
        <span class="req_field">*</span>Description:</td>
                <td>
        <asp:TextBox ID="txtDescription" runat="server" Height="120px" TextMode="MultiLine" 
                        Width="303px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtDescription" ErrorMessage="Required Field" 
                        Font-Size="X-Small" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
                
            </tr>
            <tr>
                <td style="text-align: right">
        <span class="req_field">*</span>Qualification:</td>
                <td>
        <asp:TextBox ID="txtQualification" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                        ControlToValidate="txtQualification" ErrorMessage="Required Field" 
                        Font-Size="X-Small" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
            <td style="text-align: right; color: #000000;">
                <span class="req_field">*</span>Type:</td>
                <td>
                    <asp:DropDownList ID="ddlType" runat="server">
                        <asp:ListItem></asp:ListItem>
                        <asp:ListItem>Full Time</asp:ListItem>
                        <asp:ListItem>Part Time</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
                        ErrorMessage="Required Field" Font-Size="X-Small" ForeColor="Red" 
                        ControlToValidate="ddlType"></asp:RequiredFieldValidator>
                </td>
            </tr>
        </table>
    <table class="style1">
        <tr>
            <td style="text-align: right">
                <span class="req_field">*</span> Location:</td>
            <td>
                <asp:TextBox ID="txtLocation" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="txtLocation" ErrorMessage="Required Field" 
                    Font-Size="X-Small" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">
                <span class="req_field">*</span>Industry:</td>
            <td>
                <asp:DropDownList ID="ddlJobIndustry" runat="server">
                    <asp:ListItem></asp:ListItem>
                    <asp:ListItem>Accounting</asp:ListItem>
                    <asp:ListItem>Administration</asp:ListItem>
                    <asp:ListItem>Arts, Media &amp; Communication</asp:ListItem>
                    <asp:ListItem>Computing</asp:ListItem>
                    <asp:ListItem>Construction</asp:ListItem>
                    <asp:ListItem>Education</asp:ListItem>
                    <asp:ListItem>Engineering</asp:ListItem>
                    <asp:ListItem>Healthcare</asp:ListItem>
                    <asp:ListItem>Hotels &amp; Restaurants</asp:ListItem>
                    <asp:ListItem>Manufacturing</asp:ListItem>
                    <asp:ListItem>Sales &amp; Marketing</asp:ListItem>
                    <asp:ListItem>Sciences</asp:ListItem>
                    <asp:ListItem>Services</asp:ListItem>
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ControlToValidate="ddlJobIndustry" ErrorMessage="Required Field" 
                    Font-Size="X-Small" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">
                <span class="req_field">*</span>Working Hours:</td>
            <td>
                <asp:TextBox ID="txtWorkingHours" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                    ControlToValidate="txtWorkingHours" ErrorMessage="Required Field" 
                    Font-Size="X-Small" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="text-align: right; color: #000000;">
                <span class="req_field">*</span>Salary:</td>
            <td>
                <asp:TextBox ID="txtSalary" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                    ControlToValidate="txtSalary" ErrorMessage="Required Field" Font-Size="X-Small" 
                    ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
    </table>

    <div class="line-clear">
    </div>
    <div class="ca_submit">
        <asp:ImageButton ID="btnSave" runat="server" 
            ImageUrl="~/Images/caBtnSave.png" onclick="btnSave_Click" />
            
        &nbsp;
            
        <a href="javascript:caBtnCancel_Click()" onmouseover="this.style.cursor='hand'"><img src="images/caBtnCancel.png" /></a>
    </div>
</asp:Content>

